﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMK.PaketTracker.Server.Database;

namespace MMK.PaketTracker.Server.Application
{
    public static class ExecuteSqlManager
    {
        public static void ExecuteSql(string sql)
        {
            using (ExecuteSqlDatabaseLayer db = CreateExecuteSqlDataLayer())
            {
                db.ExecuteSql(sql);
            }
        }


        private static ExecuteSqlDatabaseLayer CreateExecuteSqlDataLayer()
        {
            return new ExecuteSqlDatabaseLayer(Config.DbConnectionString);
        }

    }
}
